package com.cxz.food.service.impl;

import com.cxz.food.dao.BusinessMapper;
import com.cxz.food.domain.Business;
import com.cxz.food.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {

    @Autowired
    private BusinessMapper businessMapper;

    @Override
    public List<Business> getBusinessList() {
        return businessMapper.getBusinessList();
    }

    @Override
    public void addBusiness(Business business) {
        businessMapper.addBusiness(business);
    }

    @Override
    public Business getBusinessByName(String username) {
        return businessMapper.getBusinessByName(username);
    }
}
